package com.bookmall.product.feign;

import com.bookmall.common.entity.es.EsModel;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description:
 * @Author 胡菜鸡
 * @Create 2022-04-10-13:52
 */
@FeignClient("bookmall-search")
public interface SearchFeignService {

    /**
     * 上架书籍
     * @author 胡菜鸡
     * @date 2022/4/10 13:52
     */
    @PostMapping("/elastic/book/save")
    public AjaxResult bookStatusUp(@RequestBody List<EsModel> esModels);
}
